package com.zzl.bonds.ticket.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author : spp
 * @date : 2022/2/17 13:32
 */
@ApidocModel
@Data
public class TicketDataDto implements Serializable {
    /**
     * 所属票据类型的id
     */
    @JsonIgnore
    private String ticketActionId;
    /**
     * 票据类型 1、开立 2、转让 3、融资 4、兑付
     */
    @JsonIgnore
    private Integer ticketActionType;
    @ApidocModelProperty(description = "资料类型 1、贸易合同 2、发票")
    private String dataType;
    @ApidocModelProperty(description = "资料类型名称")
    private String dataTypeName;
    @ApidocModelProperty(description = "文件名称")
    private String fileName;
    //    @ApidocModelProperty(description = "资料编号")
//    private String dataNo;
//    @ApidocModelProperty(description = "资料描述")
//    private String dataDescribe;
    @ApidocModelProperty(description = "资料文件地址/文件中心的id")
    private String dataAddress;

    @ApidocModelProperty(description = "发票代码")
    private String invoiceCode;
    @ApidocModelProperty(description = "发票号码")
    private String invoiceNo;
    @ApidocModelProperty(description = "发票类型 0 专票 1普票")
    private Integer invoiceType;
    @ApidocModelProperty(description = "价税合计")
    private Double amountIncludingTax;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "开票日期", validate = "yyyy-MM-dd")
    private Date billingDate;
    @ApidocModelProperty(description = "校验码后6位")
    private String lastSixDigitsCheckCode;


}
